from email.mime.text import MIMEText
msg = MIMEText('hello, send by Python...', 'plain', 'utf-8')


from_addr = 'wimiwang@outlook.com'
password = 'wang123456'

smtp_server = 'smtp-mail.outlook.com'
to_addr = 'wangruipeng@wimift.com'

import smtplib
server = smtplib.SMTP(smtp_server, 587) 
server.set_debuglevel(1)
server.login(from_addr, password)
server.sendmail(from_addr, [to_addr], msg.as_string())
server.quit()